//package com.plian.system.controller.tb;
//
//import com.plian.Tools.base.BaseController;
//import com.plian.system.dto.tb.InstitutionalStatisticsDTO;
//import com.plian.system.model.CommonCode;
//import com.plian.system.model.ListResult;
//import com.plian.system.model.R;
//import com.plian.system.service.tb.InstitutionalStatisticsService;
//import com.plian.system.vo.report.PieChartVO;
//import com.plian.system.vo.tb.MeetSumValue;
//import com.plian.system.vo.tb.TripleMeetingTopicVO;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import lombok.AllArgsConstructor;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.util.List;
//
///**
// * @Author: Take-off
// * @Description: TODO
// * @Date: 2023/1/9 3:10 PM
// * @Version: 1.0
// **/
//@RestController
//@AllArgsConstructor
//@RequestMapping("api/institutionalstatistics")
//@Api(value = "InstitutionalStatisticsController", tags = "制度统计 控制器")
//public class InstitutionalStatisticsController extends BaseController {
//
//    private final InstitutionalStatisticsService institutionalStatisticsService;
//
//    @PostMapping("/getSumValue")
//    @ApiOperation(value = "总计", notes = "传入 dto")
//    public R<MeetSumValue> getSumValue(@RequestBody InstitutionalStatisticsDTO dto) {
//        return R.data(institutionalStatisticsService.getSumValue(dto));
//    }
//
//    @PostMapping("/getTopicTypeCake")
//    @ApiOperation(value = "议题类型饼图", notes = "传入 dto")
//    public R<PieChartVO> getTopicTypeCake(@RequestBody InstitutionalStatisticsDTO dto) {
//        return R.data(institutionalStatisticsService.getTopicTypeCake(dto));
//    }
//
//    @PostMapping("/getTopicList")
//    @ApiOperation(value = "议题清单", notes = "传入 dto")
//    public ListResult<TripleMeetingTopicVO> getTopicList(@RequestBody InstitutionalStatisticsDTO dto) {
//        List<TripleMeetingTopicVO> topicList = institutionalStatisticsService.getTopicList(dto);
//        ListResult<TripleMeetingTopicVO> listResult = new ListResult<>(CommonCode.SUCCESS);
//        listResult.setList(topicList);
//        listResult.setTotal(topicList.size());
//        return listResult;
//    }
//}
